

cd  "C:\Users\ejm5\Dropbox\Covid\Data"
use stringency.dta, clear
collapse stringencyindex inequality gdp populationsize infectedtotal infectednew excessmortalityowid excessmortalitynyt , by( countrycode countryname)
generate gdpcap=gdp/populationsize
generate pop_100000000= populationsize/1000000000
generate infect_percapita= infectedtotal/populationsize

reg stringencyindex inequality pop_100000000 infect_per gdp, robust


#delimit;
avplot inequality,  rlopts(lcolor(maroon)) mlabel( countrycode) mlabsize(tiny) mlabposition(9) symbol(i) mlabcolor(navy) msize(vsmall) scheme(s1color) legend(rows(2) size(vsmall) ring(0) position(7) label(1 "Fitted Line") label(2 "Observed Value")) ytitle("Stringency|X (GDP, Population, Infection Rate)", size(medsmall) margin(vsmall)) xtitle("Inequality|X (GDP, Population, Infection Rate)", size(medsmall) margin(small));
graph save "Graphs\Stringency.gph", replace;